.container {
  padding: 24px;
  background: #fff;
  min-height: calc(100vh - 64px);
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.title {
  font-size: 28px;
  font-weight: bold;
  color: #262626;
  position: relative;
  padding-left: 16px;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1890ff;
    border-radius: 2px;
  }
}

.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.activityItem {
  cursor: pointer;
  transition: all 0.3s;

  &:hover {
    transform: translateY(-4px);
  }
}

.activityCard {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  
  :global {
    .ant-card-cover {
      height: 140px;
      background: linear-gradient(120deg, #e6f7ff 0%, #f0f5ff 100%);
      position: relative;
      overflow: hidden;
      flex-shrink: 0;

      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
      }
    }

    .ant-card-body {
      padding: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .ant-card-meta {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .ant-card-meta-detail {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .ant-card-meta-title {
      font-size: 16px;
      font-weight: 600;
      color: #262626;
      margin-bottom: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ant-card-meta-description {
      color: #595959;
      flex: 1;
    }
  }
}


.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
//   :global {
//     .ant-tag {
//       margin: 0;
//       border: none;
//       font-size: 12px;
//       padding: 0px 8px;
//       border-radius: 4px;
//     }
//   }
}

.participants {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.cardContent {
  .description {
    color: #595959;
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-size: 14px;
    min-height: calc(1.6em * 2);
    
    &:empty {
      &::after {
        content: "暂无简介";
        color: #bfbfbf;
      }
    }
  }

  .info {
    font-size: 13px;
    color: #8c8c8c;

    > div {
      margin-bottom: 8px;
      display: flex;
      gap: 8px;
      align-items: flex-start;

      &:last-child {
        margin-bottom: 0;
      }

      span {
        color: #8c8c8c;
        flex-shrink: 0;
      }
    }
  }
}

:global {
  .ant-list {
    margin: 0 -12px;
  }

  .ant-list-item {
    padding: 12px !important;
  }

  .ant-pagination {
    margin-top: 32px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    gap: 16px;
  }

  .title {
    font-size: 24px;
    width: 100%;
  }

  .filters {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    
    .ant-input-affix-wrapper {
      width: 45%;
      min-width: 0;
      flex-shrink: 1;
    }

    .ant-select {
      width: 27.5%;
      min-width: 0;
      flex-shrink: 1;
    }
  }

  :global {
    .ant-list {
      margin: 0 -8px;
    }

    .ant-list-item {
      padding: 8px !important;
    }
  }
} 